package com.ruis.kotboot.common.base

import com.baomidou.mybatisplus.mapper.BaseMapper
import com.baomidou.mybatisplus.plugins.pagination.Pagination
import org.apache.ibatis.annotations.Param

/**
 * Created by mgr on 2017/12/28.
 */

interface RuisMapper<T>: BaseMapper<T>{
    fun finds(@Param("cm") params:Map<String, Any?>): List<Long>
    fun findList(@Param("cm") params:Map<String, Any?>): List<T>
    fun findList(@Param("et") et:T): List<T>
    fun findList(page: Pagination, @Param("cm") params:Map<String, Any?>): List<T>
    fun findCount(@Param("cm") params:Map<String, Any?>): Int?
    fun delList(@Param("ids")ids:Any?)
}